<?php
session_start();

$marks = &$_SESSION['marks'];

$mark_id = $_REQUEST['mark_id'];

unset($marks[$mark_id]);

if (file_exists("answerfiles/".$mark_id.".txt"))
{
	unlink("answerfiles/".$mark_id.".txt");
}

echo json_encode(array( "error" => "" ));
?>